package com.shxy.dao

import com.shxy.pojo.User
import org.springframework.cache.annotation.Cacheable
import org.springframework.data.jpa.repository.JpaRepository

interface UserDao : JpaRepository<User, Long>{
    @Cacheable(value = ["user_"])
    fun getUserById(id: Long): User
}